﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Duck : Common, InSwim
    {
        public Duck()
        {

        }

        public Duck(string name) : base(name)
        {
            this.Name = name;
        }
        public void Swimming()
        {
            Console.WriteLine("{0}我会游泳", this.Name);
        }
    }
}
